﻿namespace TestingBindings
{
    using Caliburn.Testability.Extensions;
    using Commands;
    using NUnit.Framework;
    using Rhino.Mocks;

    [TestFixture]
    public class The_presenter_for_registration
    {
        private RegistrationController the_controller;

        [SetUp]
        public void given_a_context_of()
        {
            var service = MockRepository.GenerateStub<IRegistrationService>();
            the_controller = new RegistrationController(service);
        }

        [Test]
        public void raises_change_notification()
        {
            the_controller
                .AssertThatAllProperties()
                .Ignoring(x => x.ValidationErrors)
                .RaiseChangeNotification();
        }
    }
}